﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RolesDetail.aspx.cs" Inherits="admin_system_RolesDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/Admin/Css/Common.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jQuery1.7.js" type="text/javascript"></script>
    <script src="/Plugin/artDialog/jquery.artDialog.source.js?skin=blue" type="text/javascript"></script>
    <script src="/Plugin/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Plugin/Validform/js/Validform_v4.0.js" type="text/javascript"></script>
    <link href="/Plugin/Validform/css/style.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/sjn.1.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">

        var win = art.dialog.open.origin;

        $(function () {
            $(".registerform").Validform({
                tiptype: 2,
                postonce: true,
                ajaxPost: true,
                callback: function (data) {
                    if (data.status == "y") {
                        art.artDialog.alert(data.info);
                        win.$("#RolesList").datagrid("reload");
                        art.dialog.close();  //提交成功，关闭弹出框
                    } else {
                        alert(data.info);
                    }
                }
            });
        });
        
    </script>
</head>
<body>
    <form id="form1" class="registerform" runat="server">
    <div style="margin: 20px; width: 500px;">
        <table>
            <tr>
                <td>
                    <span style="color: Red">*&nbsp;</span>角色名：
                </td>
                <td>
                    <input type="text" style="width:150px" id="RoleName" name="RoleName" class="inputxt" ajaxurl="RolesDetail.aspx?act=checkingName&id=<%=Request.QueryString["id"]%>"
                        datatype="*1-40" nullmsg="填写角色名。" errormsg="长度为1~40，请输入正确的字符串长度" />
                </td>
                <td>
                    <div class="Validform_checktip">
                        填写角色名。
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <span style="color: Red">&nbsp;&nbsp;</span>备&nbsp;&nbsp;&nbsp;注：
                </td>
                <td>
                    <textarea rows="6" id="RoleIntro" name="RoleIntro" style="width: 150px;"></textarea>
                </td>
                <td>
                    <div class="Validform_checktip">
                        对此操作的备注或者说明。
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <span style="color: Red">*&nbsp;</span>状&nbsp;&nbsp;&nbsp;态：
                </td>
                <td>
                    <select id="IsDisabled" name="IsDisabled">
                        <option value="True">开启</option>
                        <option value="False">禁用</option>
                    </select>
                </td>
                <td>
                    <div class="Validform_checktip">
                        对此操作的备注或者说明。
                    </div>
                </td>
            </tr>
        </table>
        <div class="aui_buttons" style="height: 35px;">
            <button id="c_ok" class="aui_state_highlight" type="submit" style="float: right;">
                <%=btn_text %>
            </button>
            <asp:HiddenField ID="action" runat="server" />
            <input type="hidden" id="RoleID" name="RoleId" value="" />
        </div>
        <asp:Label ID="lb_js" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
